const [inert, vision, package, hapiSwagger] = [
    require('inert'),
    require('vision'),
    require('package'),
    require('hapi-swagger')
]


module.exports = [
    inert,
    vision,
    {
        register: hapiSwagger,
        options: {
            info: {
                title: '接口文档',
                version: package.version
            },
            grouping: 'tags',
            tags: [
                { name: 'tests', description: '测试相关' },
                { name: 'orders', description: '订单相关' },
                { name: 'shops', description: '门店相关' },
            ]
        }
    }
]